import { hilog } from '@kit.PerformanceAnalysisKit';

export class LogUtils {
  private static readonly DOMAIN = 0x9527;
  private static readonly TAG = 'KitDemo-CrossVpMessage';
  private static readonly FILTER_NAME = '<HM_DEMO>';

  static info(format: string, ...args: any[]): void {
    hilog.info(LogUtils.DOMAIN, LogUtils.TAG, LogUtils.FILTER_NAME + format, args);
  }

  static debug(format: string, ...args: any[]): void {
    hilog.debug(LogUtils.DOMAIN, LogUtils.TAG, LogUtils.FILTER_NAME + format, args);
  }

  static warn(format: string, ...args: any[]): void {
    hilog.warn(LogUtils.DOMAIN, LogUtils.TAG, LogUtils.FILTER_NAME + format, args);
  }

  static error(format: string, ...args: any[]): void {
    hilog.error(LogUtils.DOMAIN, LogUtils.TAG, LogUtils.FILTER_NAME + format, args);
  }
}
